import java.util.PriorityQueue;
import java.util.Queue;

public class priorityQ {
    public static void main(String[] args) {
        //默认是小根堆
        Queue<Integer> priorityQueue1 = new PriorityQueue<>();
        priorityQueue1.offer(10);
        priorityQueue1.offer(1);

        System.out.println(priorityQueue1.poll());
    }
}
